home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vbdatabs / djgpp.mak < prev    next >
Encoding:
Makefile  |  1999-03-31  |  3.3 KB  |  103 lines

  1. #######################
  2. #### Start of File ####
  3. #######################
  4. # --------------------------------------------------------------- 
  5. # Makefile Contents: Make file for the ASCII to PostScript converter program.
  6. # C/C++ Compiler Used: DJGPP gcc 2.7.2.1 compiled for MSDOS 
  7. # Produced By: Doug Gaer
  8. # File Creation Date: 12/17/1997  
  9. # Date Last Modified: 03/31/1999
  10. # --------------------------------------------------------------- 
  11. # --------------- Makefile Description and Details -------------- 
  12. # --------------------------------------------------------------- 
  13. # Complier Flags 
  14. #       v                   -- Echo compilation
  15. #       g                   -- Enable debugging
  16. #       Wall                -- Turn on warnings 
  17. #       -fhandle-exceptions -- Enable C++ exception handling
  18. #       -frtti              -- Enable C++ Run-Time Type Information
  19. #
  20. # Linker flags using gcc or ld
  21. #    -lgpp    -- C++ Linkage
  22. #    -lstdcx  -- Needed for Exception Handling and RTTI
  23. #    -lm      -- Needed for Exception Handling
  24. # --------------------------------------------------------------- 
  25. # Define a name for the executable
  26. PROJECT = as2ps
  27.  
  28. # Installation directory for the application and config files
  29. INSTALL_DIR = ..\..\bin
  30.  
  31. # Macro for path separator
  32. PATHSEP=/
  33.  
  34. # Setup additional paths for includes and source code
  35. AS2PS_PATH = .
  36. PSCRIPT_PATH = ../../src
  37.  
  38. ADD_INC_PATHS = -I../../include
  39.  
  40. # Setup define macros
  41. DEFMACS = 
  42.  
  43. # Define macros for compiler and linker
  44. CC = gcc
  45. CPP = gcc
  46. LINKER = ld
  47.  
  48. # Define compiler and linker flags macros
  49. CFLAGS= -fhandle-exceptions $(ADD_INC_PATHS) $(DEFMACS)
  50. COMPILE_ONLY = -c
  51. OUTPUT = -o
  52. CPP_FLAG = -lgpp -lstdcx     
  53. LFLAGS =  
  54.  
  55. # Build dependency rules
  56. # ===============================================================
  57. PSCRIPT_DEP = ../../include/pscript.h 
  58.  
  59. AS2PS_DEP = ../../include/pscript.h \
  60.     $(AS2PS_PATH)$(PATHSEP)as2ps.h 
  61. # ===============================================================
  62.  
  63. # Compile the files and build the executable
  64. # ===============================================================
  65. all:    $(PROJECT)
  66.  
  67. pscript.o:    $(PSCRIPT_PATH)$(PATHSEP)pscript.cpp $(PSCRIPT_DEP)
  68.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  69.     $(PSCRIPT_PATH)$(PATHSEP)pscript.cpp
  70.  
  71. as2ps.o:    $(AS2PS_PATH)$(PATHSEP)as2ps.cpp $(AS2PS_DEP)
  72.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  73.     $(AS2PS_PATH)$(PATHSEP)as2ps.cpp
  74.  
  75. # Make the executable
  76. OBJS = pscript.o as2ps.o 
  77.  
  78. $(PROJECT):    $(OBJS)
  79.     $(CC) $(CFLAGS) $(OBJS) $(OUTPUT) $(PROJECT) $(CPP_FLAG)
  80. # ===============================================================
  81.  
  82. # ===============================================================
  83. install:
  84.     @echo Installing $(PROJECT) binaries to the bin directory...
  85.     @if exist $(PROJECT).exe copy $(PROJECT).exe $(INSTALL_DIR)
  86. # ===============================================================
  87.  
  88. # Remove object files and the executable after running make 
  89. # ===============================================================
  90. clean:
  91.     echo Removing all OBJECT files from working directory...
  92.     rm -f *.o 
  93.  
  94.     echo Removing COFF file from working directory...
  95.     rm -f $(PROJECT)
  96.  
  97.     echo Removing EXECUTABLE file from working directory...
  98.     rm -f $(PROJECT).exe
  99. # --------------------------------------------------------------- 
  100. #####################
  101. #### End of File ####
  102. #####################
  103.